import service from './request'


export function getSchoolroll({ pagenum, pagesize, department_id }) {
    return service.get('/schoolroll?page=' + pagenum + '&page_size=' + pagesize + '&id=' + department_id)
}

export function addSchoolroll(data) {
    return service.post('/schoolroll/save_image', data)
}
export function removeSchoolroll(id) {
    return service.delete('/schoolroll/' + id)
}

export function getSchoolrollItem(id) {
    return service.get('/schoolroll/' + id)
}

export function editSchoolrollItem(id, data) {
    return service.put('/schoolroll/' + id, data)
}